

import java.io.IOException;

import pjaws.paw.Paw;



public class TestPawClient extends Paw{
	TestPawClient(String initFile){
		super(initFile);

	}


	public static void main(String args[]) {
		String initFile = System.getProperty("user.dir")  + "/testclient.paw";
		System.out.println(initFile);
		Paw myPaw = new TestPawClient(initFile);

		
		try {
			int[] set = (int[]) myPaw.receivePawMessage(93, 1);
			System.out.println("RECEIVED: " + set);
			int max = set[0];
			for (int i : set){
				if (i > max){
					max = i;
				}
			}
			myPaw.sendPawMessage(max, 93, 2);
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		

		
	}


	@Override
	public void run() {
		// TODO Auto-generated method stub
		
	}

}
